const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    open: true,
    host: '127.0.0.1',
    port: 1102,
    proxy: {
      '/api': {
        target: 'https://x.dscmall.cn/api',
        changeOrigin: true,
        pathRewrite: {  // 路径重写，
          '^/api': ''  // 替换target中的请求地址
        }
      }
    }
  }
})
